package au.chao.message;

import org.springframework.core.style.ToStringCreator;


public class TextMessageHeader implements MessageHeader {
	private static final long serialVersionUID = 1L;

	private int fromUserId;
	private int toUserId;

	public TextMessageHeader() {

	}

	public TextMessageHeader(int fromId, int toId) {
		fromUserId = fromId;
		toUserId = toId;
	}

	public int getFromUserId() {
		return fromUserId;
	}

	public void setFromUserId(int fromUserId) {
		this.fromUserId = fromUserId;
	}

	public int getToUserId() {
		return toUserId;
	}

	public void setToUserId(int toUserId) {
		this.toUserId = toUserId;
	}

	public String toString() {
		return new ToStringCreator(this).append("fromUserId", fromUserId).append(",toUserId",
				toUserId).toString();

	}
}
